<include file='public/_meta'>

<div class="page-container mt-10 ml-10 mr-10 f-16">
    <p class="text-c label-primary c-white pd-5">车辆数据</p>
    <div class="cl">
        <div class="col-xs-6 col-sm-6">
            <ul>
                <li>车牌号 : {$cars.car_sn}</li>
                <li>车架号 ：{$cars.car_unique_id}</li>
                <li>发动机号 ：{$cars.motor_id}</li>
                <li>车辆型号 ：{$cars.car_name}</li>
                <li>品牌名称 ：{$cars.brand.name}</li>
                <li>车辆类型 ：{$car_breed[$cars['car_breed']]??'未知'}</li>
                <li>车辆用途 ：{$car_usage[$cars['car_usage']]??'未知'}</li>
                <li>车辆状态 ：{$relevance[$cars['relevance']]??'未知'}</li>
                <li>加盟商 ：{$cars.agency.name}</li>
                <li>停车场 : {$car_park[$cars['car_park']]??'未知'}</li>
                <li>机动车所属权 ：{$cars.holder_name}</li>
            </ul>
        </div>

        <div class="col-xs-6 col-sm-6">
            <ul>
                <li>车机型号：{$cars.supplier_no==1376920002?'S':''}{$cars.supplier_no==1376920001?'W':''}{$cars.supplier_no==1376920003?'S-IOT':''}</li>
                <li>SIM卡商:{$cars.sim_card==1376920004?'阿里云':''}{$cars.sim_card==1376920005?'赛卡':''}</li>
                <li>主物联网卡号 ：{$cars.cardcode}</li>
                <li>主物联网卡序号 ： {$cars.sim_id}</li>
                <li>主车载设备的编号 ：{$cars.equipment_id}</li>
                <li>副车机型号 ：{$cars.back_supplier_no==1376920002?'S':''}{$cars.back_supplier_no==1376920001?'W':''}</li>
                <li>副物联网卡号 ：{$cars.back_cardcode}</li>
                <li>副物联网卡序号 ：{$cars.back_sim_id}</li>
                <li>副车载设备的编号 ：{$cars.back_equipment_id}</li>
                <li>添加时间 ：{$cars.create_time}</li>
                <li>更新时间 ：{$cars.update_time}</li>
            </ul>
        </div>
    </div>
    <div class="cl mt-10">
        <div class="col-xs-12 col-sm-12 mt-10">
            <foreach name='cars.car_file' item = "val">
                <a href="__UPLOADS__/{$val['file_url']}" target="_blank">
                    <switch name="$val['file_type']" >
                        <case value="0">
                            <img src="__PUBLIC__/static/images/ba400a0df3d3d6.jpg" class="mb-5">
                        </case>
                        <case value="1">
                            <img src="__PUBLIC__/static/images/bece3bde7b.jpg" class="mb-5">
                        </case>
                        <default />
                            <img src="__PUBLIC__/static/images/ccbfb72ded5690.jpg" class="mb-5">
                    </switch>

                </a>
            </foreach>
        </div>
    </div>
</div>
<if condition="$data!=null">
    <div class="page-container mt-5 ml-10 mr-10 f-16">
        <p class="text-c label-primary c-white pd-5">车机数据</p>
        <div class="cl">
            <div class="col-xs-6 col-sm-6">
                <ul>
                    <li>车机版本 : {$data.machine_version}</li>
                    <if condition="$data.long_term_lease!==null">
                        <li>长租类型 : {$data.long_term_lease == 0 ? '分时用车':'长租用车'}</li>
                    </if>
                    <li>总里程 : {$data.mileage}公里</li>
                    <li>剩余里程 : {$data.mileage_surplus}km</li>
                    <if condition="$data.total_voltage!==null">
                        <li>总电压 : {$data.total_voltage}V</li>
                    </if>
                    <li>小瓶电压 : {$data.voltage}V</li>
                    <if condition="$data.total_electricity!==null">
                        <li>总电流 : {$data.total_electricity}A</li>
                    </if>
                    <li>电池电量 : {$data.soc}%</li>
                    <li>速度 : {$data.speed}km/h</li>
                    <li>方向 : {$data.direction}°</li>
                    <if condition="$data.gprs_signal!==-1">
                        <li>GPRS强度 : {$data.gprs_signal} ({$data.gprs_signal>=8?($data.gprs_signal>12?'可GPRS':'GPRS不稳定'):'可发送短信'})</li>
                    </if>
                    <if condition="$data.gps_signal!==-1">
                        <li>卫星个数 : {$data.gps_signal}</li>
                    </if>
                    
                    <li>车机时间 : {:date('Y-m-d H:i:s',$data['machine_report_time']/1000)}</li>
                </ul>
            </div>
            
            <div class="col-xs-6 col-sm-6">
                <ul>
                    <li>联网状态 : {$data.network_status == 0?'<span class="label radius">离线</span>':'<span class="label label-success radius">在线</span>'}</li>
                    <li>Ready状态 : {$data.ready_status==0?'非':''}Ready</li>
                    <li>点熄火状态 : {$data['launch_status']==1?'点火状态':'熄火状态'}</li>
                    <li>钥匙状态 : {$data.acc_status==0?'OFF':'ON'}</li>
                    <li>档位信息 :  {$data.gear}档</li>
                    <li>运行动力 : {$data.power_model==1?'纯电':'未知'}</li>
                    <if condition="$data.obd_status!==-1">
                        <li>车机插拔状态 : {$data.obd_status==1?'插上':'拔掉'}</li>
                    </if>
                    <present name="data.control_lock">
                        <li>永久锁定状态 : {$data.control_lock==0?'未锁定':'锁定'}</li>
                    </present>

                    <present name="data.mind_cons">
                        <li>中控锁状态 : {$data.mind_cons==0?'未锁':'锁'}</li>
                    </present>

                    <present name="data.alarm">
                        <li>防盗报警状态 : {$data.alarm==0?'正常':'报警'}</li>
                    </present>

                    <present name="data.running_lights">
                        <li>行车灯/示宽灯 : {$data.running_lights==0?'关':'开'}</li>
                    </present>
                    
                    <li>充电状态 : {$data['charge_status'] == 1?'充电中':'未充电'}</li>
                    <li>左前门 : {$data.door_lf == 0?'关门':'开门'}</li>
                    <li>右前门 : {$data.door_rf == 0?'关门':'开门'}</li>
                    <li>左后门 : {$data.door_lb == 0?'关门':'开门'}</li>
                    <li>右后门 : {$data.door_rb == 0?'关门':'开门'}</li>
                    <if condition="$data.positioning_validity!==-1">
                        <li>定位数据有效性 : {$data.positioning_validity==1?'有效':'无效'}</li>
                    </if>
                    <li>车辆位置 : {$gaodeapi['regeocode']['formatted_address']?$gaodeapi['regeocode']['formatted_address']:''} <span class="c-primary">(街道编号 : {$gaodeapi['regeocode']['addressComponent']['streetNumber']['street']?$gaodeapi['regeocode']['addressComponent']['streetNumber']['street']:''} {$gaodeapi['regeocode']['addressComponent']['streetNumber']['number']?$gaodeapi['regeocode']['addressComponent']['streetNumber']['number']:''})</span></li> 
                </ul>
            </div>
        </div>
    </div>
</if>

<!--_footer 作为公共模版分离出去-->
<include file='public/_footer'>
<!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本--> 
<script type="text/javascript" src="__PUBLIC__/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="__PUBLIC__/lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript">

</script> 
<!--/请在上方写此页面业务相关的脚本-->